package com.furtherstar.core.context;

import com.yummy.web.context.RequestContext;
import com.yummy.web.context.Session;

public class WorkContext {

	public final static String CURRENT_WORK = "work";
	
	public static Work getWork() {
		Session session = RequestContext.getSession();
		if(session == null) {
			return null;
		}
		return (Work) session.getAttribute(CURRENT_WORK);
	}

	public static void setWork(Work work) {
		Session session = RequestContext.getSession();
		session.setAttribute(CURRENT_WORK, work);
	}
	
}
